package com.ccom.core.common.constant;

/**
 * @Description 缓存常量
 * @Author zjj
 * @Date 2021/10/4
 */
public class CacheConstant {
    private CacheConstant() {
    }

    /**
     * 登录用户Token令牌缓存KEY前缀
     */
    public static final String PREFIX_USER_TOKEN = "sys:cache:user:prefix_user_token_";

    /**
     * 用户登录、注册、修改密码手机验证码缓存前缀
     */
    public static final String PREFIX_PHONE_CAPTCHA = "sys:cache:user:prefix_phone_captcha_login_";

    /**
     * 缓存用户信息
     */
    public static final String SYS_USERS_CACHE = "sys:cache:user";

    /**
     * Token缓存时间：3600秒即一小时
     */
    public static final int TOKEN_EXPIRE_TIME = 3600;

    /**
     * redis中gateway路由缓存
     */
    public static final String GATEWAY_ROUTES = "sys:cache:gateway:routes";

    /**
     * 在线聊天 用户好友缓存前缀
     */
    public static final String IM_PREFIX_USER_FRIEND_CACHE = "sys:cache:im:im_prefix_user_friend_";


}
